<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri = "/WEB-INF/hpin.tld" prefix="hpin" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>

<script src="${path}/scripts/verify/yanzheng.js"></script>
<script src="${path}/scripts/verify/yanzheng2.js"></script>
<script src="${path}/scripts/verify/MyJs.js"></script>

 <form name="form1" method="post" action="${path }/assetDamange/assetDamangeAction!updateAssetDinfo.action" onsubmit="return iframeCallback(this, navTabAjaxDone);" id="form1">
	<input type="hidden" name="navTabId" value="${navTabId}"/>
	<input type="hidden" name="assetDinfo.id" value="${assetDinfo.id}"/>
	<input type="hidden" name="assetDinfo.assetno" value="${assetDinfo.assetno}"/>
	<input type="hidden" name="assetDinfo.damageNo" value="${assetDinfo.damageNo }" type="text"  />
	<input type="hidden" name="assetDinfo.deviceName" value="${assetDinfo.deviceName }" type="text"  />
	<input type="hidden" name="assetDinfo.state" value="${assetDinfo.state }" type="text"  />
	<input type="hidden" name="assetDinfo.createTime" value="${assetDinfo.createTime }" type="text"  />
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tbody>
            <tr>
                <td class="td_base" style="height: 25px">
                    <input type="submit" name="SaveBtn" value="保存" onclick="javascript:WebForm_DoPostBackWithOptions
					(new WebForm_PostBackOptions(&quot;SaveBtn&quot;, &quot;&quot;, true, &quot;&quot;, &quot;&quot;, false, false))" id="SaveBtn" accesskey="s" class="mybutton" />            
                    
                    
                    <input type="button" name="BackBtn" value="关闭" class="close" />&nbsp;
                </td>
                <td class="td_base">
                </td>
            </tr>
            <tr>
                <td colspan="2" valign="top" align="center">
                    <table cellspacing="0" cellpadding="0" border="0" width="100%" class="form">
                       <tr>
                            <td colspan="4" align="center" style="height: 25">
                                <span id="wxdh" style="color:Red;font-size:12pt;font-weight:bold;">[${assetDinfo.damageNo}]报损单</span>
                            </td>
                        </tr>
                       
                        <tr>
                            <td class="form-item" style="width: 20%">
                                报废日期：
                            </td>
                            
                            <td style="width: 30%">
                            	<input type="text" size="30" class="date" name="assetDinfo.time" style="width:85%;" value="${fn:substring(assetDinfo.time,0,10)}"  datefmt="yyyy-MM-dd" />
								<a class="inputDateButton" href="javascript:;">选择</a>
                            </td>
                            
                          <td class="form-item" style="height: 25; width: 20%">
                                报废方式：
                            </td>
                            <td style="width: 30%">
                                <%-- <input name="assetDinfo.scrapWay" value="${assetDinfo.scrapWay} " type="text"  id="wxf" readonly="true"  style="width:90%;" />
                            	 --%>
                            	 <select name="assetDinfo.scrapWay" rel="iselect" class="required" loadUrl="${path}/hpin/sysDictType!treeRegion.action?defaultID=10102">
										<option value="${assetDinfo.scrapWay }"></option>
						 		</select>
                            </td>
                        </tr>
                       
                        <tr>
                            <td class="form-item">
                                报废原因：
                            </td>
                            <td colspan="3">
                                <textarea name="assetDinfo.remark" value="${assetDinfo.remark }"  rows="2" cols="20" id="wxbz"  style="width:96%;">${assetDinfo.remark }</textarea>
                            </td>
                        </tr>
                      
                        
                        <tr>
                            <td colspan="4" style="height: 25">
                                <img src="${path}/images/initdown.gif" alt="" />
                                <span id="Label3" style="color:Blue;font-weight:bold;">报损资产信息</span>
                            </td>
                        </tr>
                        <tr>
                       		 <div class="pageContent">
				
				<table class="list" width="100%" layoutH="150" id="exportExcelTable">
					<thead>
						<tr>
							<th export = "true" columnEnName ="equipnumber" columnChName = "资产编码">资产编码</th>
							<th export = "true" columnEnName = "type" columnChName = "分类" >分类</th>
							<th export = "true" columnEnName = "name" columnChName = "资产名称">资产名称</th>
							<th export = "true" columnEnName = "measure" columnChName = "计量单位">计量单位</th>
							<th export = "true" columnEnName = "models" columnChName = "型号">型号</th>
							<th export = "true" columnEnName = "department" columnChName = "使用部门">使用部门</th>
							<th export = "true" columnEnName = "storageplace" columnChName = "存放地点">存放地点</th>
							<th export = "true" columnEnName = "state" columnChName = "当前状态">当前状态</th>
						</tr>
					</thead>
					<tbody>
						
							<tr target="sid_user" rel="${assetinfo.id }">
								<th><a href="${ path }/assetinfo/assetinfoAction!browAssetinfo.action?id=${assetinfo.id }"  target="dialog">${assetinfo.equipnumber}</a></th>
								<td align="center">${assetinfo.type}</td> 
								<td align="center">${assetinfo.name}</td> 
								<td align="center">${assetinfo.measure}</td> 
								<td align="center">${assetinfo.models}</td> 
								<td align="center">${assetinfo.department}</td> 
								<td align="center">${assetinfo.storageplace}</td> 
								<td align="center"><hpin:id2nameDB beanId="org.hpin.base.dict.dao.SysDictTypeDao" id="${assetinfo.state}"/>
								</td> 
							</tr>
						
					</tbody>
				</table>
			</div>
                        </tr>
                    </table>
                </td>
            </tr>
        </tbody>
    </table>
    <!--隐藏label-->
    
    <div id="ValidationSummary2" style="color:Red;display:none;">

</div>
    <span id="RequiredFieldValidator3" style="color:Red;visibility:hidden;">&nbsp;
    </span>
    <span id="RequiredFieldValidator5" style="color:Red;visibility:hidden;">&nbsp;
    </span>
    <span id="RequiredFieldValidator1" style="color:Red;visibility:hidden;">&nbsp;
    </span>
    <span id="RequiredFieldValidator2" style="color:Red;visibility:hidden;">&nbsp;
    </span>
    <span id="RegularExpressionValidator17" style="color:Red;display:none;"></span>
    <span id="RequiredFieldValidator4" style="color:Red;visibility:hidden;">&nbsp;
    </span>
    
<script type="text/javascript">
	
	var Page_ValidationSummaries =  new Array(document.getElementById("ValidationSummary2"));
	var Page_Validators =  new Array(document.getElementById("RequiredFieldValidator3"), document.getElementById("RequiredFieldValidator5"), document.getElementById("RequiredFieldValidator1"), document.getElementById("RequiredFieldValidator2"), document.getElementById("RegularExpressionValidator17"), document.getElementById("RequiredFieldValidator4"));
	
</script>

<script type="text/javascript">
	
	var ValidationSummary2 = document.all ? document.all["ValidationSummary2"] : document.getElementById("ValidationSummary2");
	ValidationSummary2.showmessagebox = "True";
	ValidationSummary2.showsummary = "False";
	var RequiredFieldValidator3 = document.all ? document.all["RequiredFieldValidator3"] : document.getElementById("RequiredFieldValidator3");
	RequiredFieldValidator3.controltovalidate = "bxrq";
	RequiredFieldValidator3.errormessage = "请选择报修日期";
	RequiredFieldValidator3.evaluationfunction = "RequiredFieldValidatorEvaluateIsValid";
	RequiredFieldValidator3.initialvalue = "";

	var RequiredFieldValidator4 = document.all ? document.all["RequiredFieldValidator4"] : document.getElementById("RequiredFieldValidator4");
	RequiredFieldValidator4.controltovalidate = "jsr";
	RequiredFieldValidator4.errormessage = "请选择下一步审批人";
	RequiredFieldValidator4.evaluationfunction = "RequiredFieldValidatorEvaluateIsValid";
	RequiredFieldValidator4.initialvalue = "";
	
</script>


<script type="text/javascript">


	var Page_ValidationActive = false;
	if (typeof(ValidatorOnLoad) == "function") {
		ValidatorOnLoad();
	}

	function ValidatorOnSubmit() {
		if (Page_ValidationActive) {
			return ValidatorCommonOnSubmit();
		}
		else {
			return true;
		}
	}
			
</script>


</form>